<!DOCTYPE html>
<html lang="en">
<head>
	<title>绑定手机</title>
	<include file="Public:header" />
 
</head>
<body>
<header>
	<a href="javascript:void(0)" class="lft back"><i class="icon icon-back"></i><i>返回</i></a>
	<h5>绑定手机</h5>
</header>
   <section>
	<div class="box-btn mt15">
		 	
		<div class="mb10 flexbox">
			<p class="cell">
				<input type="text" placeholder="输入绑定手机号"  style="width:60%" id="tel"><span class="btn-code ml5" style="width:auto">发送验证码</span>
			</p>
			
		</div>
		<div class="mb10">
			<input type="text" placeholder="输入手机验证码" id="code">
		</div>
	</div>
	 
	<div class="mt15 box-btn">
		<a href="this" class="btn btn-blk"  onClick="bing_phone(this)">提交</a>
	</div>
</section>
<script type="text/javascript">

	/*********注册*********/
	function bing_phone(){
	var tel= $("#tel").val();
	var code= $("#code").val();
	$.getJSON("<{:U('User/bing_phone')}>",{tel:tel,code:code},function(data){
	    if(data.error>0){
		   dialog(data.msg);
		}else{
		  // window.location.href="/User/info";
		  history.go(-1);
		}
	  })
	}
	</script>
 <include file="Public:footer" />
</body>
</html>
